package com.fire.activiti.activitidb.process.adapter;

import org.activiti.engine.impl.interceptor.CommandContext;
import org.activiti.engine.impl.interceptor.Session;

/**
 * @author Mr.Fire
 * @date 2021/12/21
 * SqlSession会话工厂
 * 在DbSqlSessionConfigurator（beforeInit方法）中重置会话工厂
 */
public class ActivitiDbSqlSessionFactory extends org.activiti.engine.impl.db.DbSqlSessionFactory {

    @Override
    public Session openSession(CommandContext commandContext) {
        return new ActivitiDbSqlSession(this, commandContext.getEntityCache());
    }

}
